package com.itheima.service.store;

import com.itheima.domain.store.Orders;
import com.itheima.domain.store.Product;

import java.util.List;

public interface ProductService {

    //分页遍历
    List<Product> list(int pageN, int pageS);

    //新增
    void save(Product product);

    //删除
    void deleteById(String ids);


    //通过id查找
    Product findById(String id);

    //编辑
    void edit(Product product);

    //开状态
    void toon(String s);

    //关闭
    void tooff(String s);

    //查询城市
    List<String> findCity();

    //模糊查询
    List<Product> findByLike(String lms, int pageNum, int pageSize);

    //查询status
    Product selectStatus(String id);
}
